package com.youxue.entity;

import java.util.Date;
import java.util.List;

public class Dynamic {
    private Integer dynamicId;

    private Integer dynamicUserId;

    private String dynamicTitle;

    private String dynamicContent;

    private Date dynamicDate;

    private Integer dynamicLikeNum;

    private String dynamicImg;

    //用户对动态是否点赞（用于数据封装返回）
    private Integer isLike;

    public Integer getIsLike() {
        return isLike;
    }

    public void setIsLike(Integer isLike) {
        this.isLike = isLike;
    }

    private User user;
    //动态直接评论总条数
    private Integer allCommentCount;

    public Integer getAllCommentCount() {
        return allCommentCount;
    }

    public void setAllCommentCount(Integer allCommentCount) {
        this.allCommentCount = allCommentCount;
    }

    public List<Interaction> getInteractions() {
        return interactions;
    }

    public void setInteractions(List<Interaction> interactions) {
        this.interactions = interactions;
    }

    private List<Interaction> interactions;


    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getDynamicId() {
        return dynamicId;
    }

    public void setDynamicId(Integer dynamicId) {
        this.dynamicId = dynamicId;
    }

    public Integer getDynamicUserId() {
        return dynamicUserId;
    }

    public void setDynamicUserId(Integer dynamicUserId) {
        this.dynamicUserId = dynamicUserId;
    }

    public String getDynamicTitle() {
        return dynamicTitle;
    }

    public void setDynamicTitle(String dynamicTitle) {
        this.dynamicTitle = dynamicTitle == null ? null : dynamicTitle.trim();
    }

    public String getDynamicContent() {
        return dynamicContent;
    }

    public void setDynamicContent(String dynamicContent) {
        this.dynamicContent = dynamicContent == null ? null : dynamicContent.trim();
    }

    public Date getDynamicDate() {
        return dynamicDate;
    }

    public void setDynamicDate(Date dynamicDate) {
        this.dynamicDate = dynamicDate;
    }

    public Integer getDynamicLikeNum() {
        return dynamicLikeNum;
    }

    public void setDynamicLikeNum(Integer dynamicLikeNum) {
        this.dynamicLikeNum = dynamicLikeNum;
    }

    public String getDynamicImg() {
        return dynamicImg;
    }

    public void setDynamicImg(String dynamicImg) {
        this.dynamicImg = dynamicImg == null ? null : dynamicImg.trim();
    }
}